package com.springcontext.ioc;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.PostConstruct;

@Service
public class AServiceImpl {

  Logger logger = LoggerFactory.getLogger(AServiceImpl.class);

  @Autowired
  public AsonServiceImpl bService;

  public AServiceImpl( ) {
    System.out.println();
  }

  @PostConstruct
  public void PostConstructor(){
    logger.info(" " + bService);
  }

  public void doWork() {
    logger.info("AServiceImpl.doWork");
    this.bService.doWork();
  }

}
